@use '@/style/variables.scss' as vars;
@use '@/style/mixins.scss' as mixins;

.disk-info-container {
  padding: vars.$spacing-lg 0;
}

.disk-info-grid {
  @include mixins.responsive-grid(350px, vars.$spacing-xl);
}

.disk-info-card {
  @include mixins.glass-card;
}

.disk-info-header {
  @include mixins.glass-card-header;
}

.disk-info-item {
  display: flex;
  justify-content: space-between;
  padding: vars.$spacing-sm 0;
  border-bottom: 1px solid vars.$border-glass;

  &:last-child {
    border-bottom: none;
  }

  .disk-info-label {
    font-weight: 500;
    color: vars.$text-muted;
  }

  .disk-info-value {
    color: vars.$text-primary;
    font-weight: 500;
  }
}

.usage-bar-container {
  margin-top: vars.$spacing-md;
  @include mixins.usage-bar;
}

// 使用率颜色分级样式
.disk-info-card {
  &.usage-low {
    border-left: 4px solid vars.$success-color;
  }

  &.usage-medium {
    border-left: 4px solid vars.$warning-color;
  }

  &.usage-high {
    border-left: 4px solid vars.$danger-color;
  }
}

.disk-info-value.usage-warning {
  color: vars.$warning-color;
  font-weight: 600;
}

.disk-info-value.usage-danger {
  color: vars.$danger-color;
  font-weight: 600;
}

.disk-info-value.usage-success {
  color: vars.$success-color;
  font-weight: 600;
}
